package com.example.springboot;

import com.example.springboot.service.IUserService;
import com.example.springboot.service.UserService;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;

@SpringBootApplication
public class SpringbootApplication {

	public static void main(String[] args) {
		ConfigurableApplicationContext ioc = SpringApplication.run(SpringbootApplication.class, args);
		IUserService userService = ioc.getBean(IUserService.class);
		String userInfo = userService.getUserInfo();
		System.out.println(userInfo);
	}

}
